package com.wzx.user.mongo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author wzx
 * @version 1.0
 * @date 2022/7/30 - 19:19
 * @description 标题
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Document(collection = "t_system_msg")
public class SystemMsg {

    @Id
    private long id;

    private Integer senderId;
    private String senderName;
    private String senderHead;

    //接受者id
    private Integer receiverId;
    private String receiverName;

    private String message;

    //创建时间
    private String createTime;

    /**
     * 系统消息类型：
     * 2：好友
     * 3：群聊
     */
    private String sysType;

    //处理状态
    private String state;

    //需要添加的id（群聊时使用）
    private String addId;
    //群聊id
    private Integer groupId;
    private String groupHead;
    private String groupName;

}
